/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package converter.core.db.entity;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Snark
 */
@Entity
@Table(name = "SYS_REPORTS")
@NamedQueries({
    @NamedQuery(name = "SysReports.findAll", query = "SELECT s FROM SysReports s"),
    @NamedQuery(name = "SysReports.findBySysFldorder", query = "SELECT s FROM SysReports s WHERE s.sysFldorder = :sysFldorder"),
    @NamedQuery(name = "SysReports.findBySysGuid", query = "SELECT s FROM SysReports s WHERE s.sysGuid = :sysGuid"),
    @NamedQuery(name = "SysReports.findBySysState", query = "SELECT s FROM SysReports s WHERE s.sysState = :sysState"),
    @NamedQuery(name = "SysReports.findBySysRev", query = "SELECT s FROM SysReports s WHERE s.sysRev = :sysRev"),
    @NamedQuery(name = "SysReports.findBySysCreated", query = "SELECT s FROM SysReports s WHERE s.sysCreated = :sysCreated"),
    @NamedQuery(name = "SysReports.findBySysUpdated", query = "SELECT s FROM SysReports s WHERE s.sysUpdated = :sysUpdated"),
    @NamedQuery(name = "SysReports.findBySysCreator", query = "SELECT s FROM SysReports s WHERE s.sysCreator = :sysCreator"),
    @NamedQuery(name = "SysReports.findBySysUser", query = "SELECT s FROM SysReports s WHERE s.sysUser = :sysUser"),
    @NamedQuery(name = "SysReports.findBySysGuidfk", query = "SELECT s FROM SysReports s WHERE s.sysGuidfk = :sysGuidfk"),
    @NamedQuery(name = "SysReports.findBySysParentguid", query = "SELECT s FROM SysReports s WHERE s.sysParentguid = :sysParentguid"),
    @NamedQuery(name = "SysReports.findByName", query = "SELECT s FROM SysReports s WHERE s.name = :name"),
    @NamedQuery(name = "SysReports.findByMode", query = "SELECT s FROM SysReports s WHERE s.mode = :mode"),
    @NamedQuery(name = "SysReports.findByTemplatefilename", query = "SELECT s FROM SysReports s WHERE s.templatefilename = :templatefilename"),
    @NamedQuery(name = "SysReports.findByReportfilename", query = "SELECT s FROM SysReports s WHERE s.reportfilename = :reportfilename"),
    @NamedQuery(name = "SysReports.findByIspublic", query = "SELECT s FROM SysReports s WHERE s.ispublic = :ispublic"),
    @NamedQuery(name = "SysReports.findByAuTablefk", query = "SELECT s FROM SysReports s WHERE s.auTablefk = :auTablefk"),
    @NamedQuery(name = "SysReports.findByVisible", query = "SELECT s FROM SysReports s WHERE s.visible = :visible"),
    @NamedQuery(name = "SysReports.findByFormats", query = "SELECT s FROM SysReports s WHERE s.formats = :formats")})
public class SysReports implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "SYS_FLDORDER")
    private Integer sysFldorder;
    @Id
    @Basic(optional = false)
    @Column(name = "SYS_GUID")
    private String sysGuid;
    @Column(name = "SYS_STATE")
    private Integer sysState;
    @Column(name = "SYS_REV")
    private BigInteger sysRev;
    @Column(name = "SYS_CREATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysCreated;
    @Column(name = "SYS_UPDATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysUpdated;
    @Column(name = "SYS_CREATOR")
    private String sysCreator;
    @Column(name = "SYS_USER")
    private String sysUser;
    @Column(name = "SYS_GUIDFK")
    private String sysGuidfk;
    @Column(name = "SYS_PARENTGUID")
    private String sysParentguid;
    @Column(name = "NAME")
    private String name;
    @Column(name = "MODE")
    private String mode;
    @Lob
    @Column(name = "SCRIPT")
    private String script;
    @Column(name = "TEMPLATEFILENAME")
    private String templatefilename;
    @Column(name = "REPORTFILENAME")
    private String reportfilename;
    @Column(name = "ISPUBLIC")
    private Integer ispublic;
    @Column(name = "AU_TABLEFK")
    private String auTablefk;
    @Column(name = "VISIBLE")
    private Integer visible;
    @Column(name = "FORMATS")
    private String formats;

    public SysReports() {
    }

    public SysReports(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysFldorder() {
        return sysFldorder;
    }

    public void setSysFldorder(Integer sysFldorder) {
        this.sysFldorder = sysFldorder;
    }

    public String getSysGuid() {
        return sysGuid;
    }

    public void setSysGuid(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysState() {
        return sysState;
    }

    public void setSysState(Integer sysState) {
        this.sysState = sysState;
    }

    public BigInteger getSysRev() {
        return sysRev;
    }

    public void setSysRev(BigInteger sysRev) {
        this.sysRev = sysRev;
    }

    public Date getSysCreated() {
        return sysCreated;
    }

    public void setSysCreated(Date sysCreated) {
        this.sysCreated = sysCreated;
    }

    public Date getSysUpdated() {
        return sysUpdated;
    }

    public void setSysUpdated(Date sysUpdated) {
        this.sysUpdated = sysUpdated;
    }

    public String getSysCreator() {
        return sysCreator;
    }

    public void setSysCreator(String sysCreator) {
        this.sysCreator = sysCreator;
    }

    public String getSysUser() {
        return sysUser;
    }

    public void setSysUser(String sysUser) {
        this.sysUser = sysUser;
    }

    public String getSysGuidfk() {
        return sysGuidfk;
    }

    public void setSysGuidfk(String sysGuidfk) {
        this.sysGuidfk = sysGuidfk;
    }

    public String getSysParentguid() {
        return sysParentguid;
    }

    public void setSysParentguid(String sysParentguid) {
        this.sysParentguid = sysParentguid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getScript() {
        return script;
    }

    public void setScript(String script) {
        this.script = script;
    }

    public String getTemplatefilename() {
        return templatefilename;
    }

    public void setTemplatefilename(String templatefilename) {
        this.templatefilename = templatefilename;
    }

    public String getReportfilename() {
        return reportfilename;
    }

    public void setReportfilename(String reportfilename) {
        this.reportfilename = reportfilename;
    }

    public Integer getIspublic() {
        return ispublic;
    }

    public void setIspublic(Integer ispublic) {
        this.ispublic = ispublic;
    }

    public String getAuTablefk() {
        return auTablefk;
    }

    public void setAuTablefk(String auTablefk) {
        this.auTablefk = auTablefk;
    }

    public Integer getVisible() {
        return visible;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public String getFormats() {
        return formats;
    }

    public void setFormats(String formats) {
        this.formats = formats;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (sysGuid != null ? sysGuid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SysReports)) {
            return false;
        }
        SysReports other = (SysReports) object;
        if ((this.sysGuid == null && other.sysGuid != null) || (this.sysGuid != null && !this.sysGuid.equals(other.sysGuid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "javaapplication1.entity.SysReports[ sysGuid=" + sysGuid + " ]";
    }
    
}
